import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useDemoStore = defineStore(
  'demo',
  () => {
    const count = ref(1)
    const accumulate = () => {
      count.value++
    }
    return { count, accumulate }
  },
  {
    persist: true,
  },
)
 
